package com.wwwarehouse.contract.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by zhenwang.xiang on 2017/10/18.
 * Description:被调整订单的bean
 */

public class TerminationOrderBean implements Parcelable {

    /**
     * list : [{"contractUkid":"564754","stopId":"260001","stopName":"网仓科技","stopTime":"2017-10-12 11:11:00"}]
     * page : 1
     * size : 10
     * total : 1
     */

    private int page;
    private int size;
    private int total;
    private ArrayList<ListBean> list;

    public void setPage(int page) {
        this.page = page;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public void setList(ArrayList<ListBean> list) {
        this.list = list;
    }

    public int getPage() {
        return page;
    }

    public int getSize() {
        return size;
    }

    public int getTotal() {
        return total;
    }

    public ArrayList<ListBean> getList() {
        return list;
    }

    public static class ListBean implements Parcelable {
        /**
         * contractUkid : 564754
         * stopId : 260001
         * stopName : 网仓科技
         * stopTime : 2017-10-12 11:11:00
         */

        private String contractUkid;
        private String stopId;
        private String stopName;
        private String stopTime;
        private String contractId;

        public String getContractId() {
            return contractId;
        }

        public void setContractId(String contractId) {
            this.contractId = contractId;
        }

        public void setContractUkid(String contractUkid) {
            this.contractUkid = contractUkid;
        }

        public void setStopId(String stopId) {
            this.stopId = stopId;
        }

        public void setStopName(String stopName) {
            this.stopName = stopName;
        }

        public void setStopTime(String stopTime) {
            this.stopTime = stopTime;
        }

        public String getContractUkid() {
            return contractUkid;
        }

        public String getStopId() {
            return stopId;
        }

        public String getStopName() {
            return stopName;
        }

        public String getStopTime() {
            return stopTime;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.contractUkid);
            dest.writeString(this.stopId);
            dest.writeString(this.stopName);
            dest.writeString(this.stopTime);
            dest.writeString(this.contractId);
        }

        public ListBean() {
        }

        protected ListBean(Parcel in) {
            this.contractUkid = in.readString();
            this.stopId = in.readString();
            this.stopName = in.readString();
            this.stopTime = in.readString();
            this.contractId = in.readString();
        }

        public static final Creator<ListBean> CREATOR = new Creator<ListBean>() {
            @Override
            public ListBean createFromParcel(Parcel source) {
                return new ListBean(source);
            }

            @Override
            public ListBean[] newArray(int size) {
                return new ListBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.page);
        dest.writeInt(this.size);
        dest.writeInt(this.total);
        dest.writeList(this.list);
    }

    public TerminationOrderBean() {
    }

    protected TerminationOrderBean(Parcel in) {
        this.page = in.readInt();
        this.size = in.readInt();
        this.total = in.readInt();
        this.list = new ArrayList<ListBean>();
        in.readList(this.list, List.class.getClassLoader());
    }

    public static final Parcelable.Creator<TerminationOrderBean> CREATOR = new Parcelable.Creator<TerminationOrderBean>() {
        @Override
        public TerminationOrderBean createFromParcel(Parcel source) {
            return new TerminationOrderBean(source);
        }

        @Override
        public TerminationOrderBean[] newArray(int size) {
            return new TerminationOrderBean[size];
        }
    };
}
